<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>添加产品</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	<link href="<%=basePath%>/AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css">
	<link href="<%=basePath%>/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css">
	<link href="<%=basePath%>/css/personal.css" rel="stylesheet" type="text/css">
	<link href="<%=basePath%>/css/systyle.css" rel="stylesheet" type="text/css">
	<style type="text/css">
		table,table tr,table tr td{border:1px solid #FFE4B5;width:500px}
		table tr{
			font-size:20px;
		}
		
	</style>
  </head>
  
  <body>
  	<!--头 -->
		<header>
			<article>
				<div class="mt-logo">
				<!--悬浮搜索框-->

						<div class="nav white">
							<div class="logoBig">
								<li><img src="<%=basePath%>images/logobig.png" /></li>
							</div>

							<div class="search-bar pr">
								<a name="index_none_header_sysc" href="#"></a>
								<form>
									<input id="searchInput" name="index_none_header_sysc" type="text" placeholder="搜索" autocomplete="off">
									<input id="ai-topsearch" class="submit am-btn" value="搜索" index="1" type="submit">
								</form>
							</div>
						</div>

						<div class="clear"></div>
					</div>
				</div>
			</article>
		</header>
    <center>
    <%
	    request.setCharacterEncoding("UTF-8");
		response.setCharacterEncoding("UTF-8");
		String name=new String(request.getParameter("product_name").getBytes("ISO-8859-1"),"UTF-8");
		String product_describe=new String(request.getParameter("product_describe").getBytes("ISO-8859-1"),"UTF-8");
    	
     %>
    <!--上新/下架 -->
		<form action="product.do?type=update" method="post" >
			<table style="text-align: center;margin-top:5em;">
				<thead>
				<tr>
					<td colspan="2" style="font-size:24px;">修改商品</td>
				</tr>
					
				</thead>
				<tr >
					<td style="font-size:22px;text-align:right;">商品名称：
					<input type="hidden" name="product_id" value="<%=request.getParameter("product_id")%>">
					</td>
					<td ><input type="text" name="product_name" style="width:250px;height:30px;" value="<%=name%>"></td>
				</tr>
				<tr>
					<td style="font-size:22px;text-align:right;">商品价格：</td>
					<td><input type="text" name="product_price" style="width:250px;height:30px;" value="<%=request.getParameter("product_price")%>"></td>
				</tr>
				<tr>
					<td style="font-size:22px;text-align:right;">商品简介：</td>
					<td><input type="text" name="product_describe" style="width:250px;height:30px;" value="<%=product_describe%>"></td>
				</tr>
				<%-- <tr>
					<td style="font-size:22px;text-align:right;">商品描述：</td>
					<td><input type="text" name="product_cart" style="width:250px;height:30px;" value="<%=request.getParameter("product_cart")%>"></td>
				</tr> --%>
				<tr>
					<td colspan="2"><input type="submit" value="保存" style="font-size:22px;text-align:center;width:80px;"></td>
				</tr>
				
			</table>
		</form>
    </center>
    <!--底部-->
				<div class="footer" style=":position:fixed; bottom:0;margin-top:20em;">
					<div class="footer-hd">
						<p>
							<a href="#">恒望科技</a>
							<b>|</b>
							<a href="#">商城首页</a>
							<b>|</b>
							<a href="#">支付宝</a>
							<b>|</b>
							<a href="#">物流</a>
						</p>
					</div>
					<div class="footer-bd">
						<p>
							<a href="#">关于恒望</a>
							<a href="#">合作伙伴</a>
							<a href="#">联系我们</a>
							<a href="#">网站地图</a>
							<em>© 2015-2025 Hengwang.com 版权所有</em>
						</p>
					</div>
				</div>

			</div>
  </body>
</html>
